package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.GoodsClass;
import org.darkforest.vo.GoodsClassVo;

import java.util.List;
import java.util.Map;

@DBMapper
public interface GoodsClassMapper {
    int deleteByPrimaryKey(Integer gcId);

    int insert(GoodsClass record);

    int insertSelective(GoodsClass record);

    GoodsClass selectByPrimaryKey(Integer gcId);

    int updateByPrimaryKeySelective(GoodsClass record);

    int updateByPrimaryKey(GoodsClass record);

    /**
     * 查询商品分类
     * @param goodsClass
     * @return
     */
    List<GoodsClass> findGoodsClass(GoodsClass goodsClass);


    List<GoodsClass> findStoreBindClass(Map<String,Object> map);

    /**
     * 查询商品一级分类 以及二级分类
     * @param goodsClass
     * @return
     */
    List<GoodsClass> findLevel1AndLevel2GoodsClass(GoodsClass goodsClass);

    List<GoodsClassVo> listGoodsClassWithGoods();
}